Skip to content

Fix pip wheel checks#389

Merged
stankevich merged 3 commits into
voxpupuli:masterfrom
genebean:fix_pip_wheel_checks
May 5, 2018
Merged

Fix pip wheel checks#389
stankevich merged 3 commits into
voxpupuli:masterfrom
genebean:fix_pip_wheel_checks

Conversation

@genebean
Copy link
Copy Markdown
Contributor

@genebean genebean commented May 3, 2018

The first commit is the fix by itself.
The second commit is a refactor to reduce duplication of code and ease reading the exec's.
The third commit replaces --no-use-wheel with --no-binary :all:. pip 10 doesn't have the old flag at all and pip v8 & v9 recommend this change.

The issue being fixed is that previously (prior to version 10, I think), pip wheel --version would
exit 0 when wheel was installed even though it complained about wanting
more arguments. Now that same command exits 1 which negates its purpose.
Using pip wheel show accomplishes the same goal as was originally
intended.

genebean added 3 commits May 3, 2018 09:30
Previously (prior to version 10, I think), pip wheel --version would
exit 0 when wheel was installed even though it complained about wanting
more arguments. Now that same command exits 1 which negates its purpose.
Using pip wheel show accomplishes the same goal as was originally
intended.
The commands were SOOO long before this that they were really hard to
follow. While deciphering them I noticed a lot of duplication from
command to command and on each side of the ||'s. I pulled most of the
duplicated code out into some variables which provides two benefits:
1) a single place to update the common components
2) easier to read exec's
--no-use-wheel has been depreciated since at least pip 8.
@stankevich stankevich merged commit 059cd5f into voxpupuli:master May 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants